package com.xcesys.extras.test.ws;

import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;

import org.apache.ws.security.WSPasswordCallback;

/**
 */
public class ClientPasswordHandler implements CallbackHandler {

	public ClientPasswordHandler() {
	}

	@Override
	public void handle(Callback[] callbacks) {
		WSPasswordCallback callback = (WSPasswordCallback) callbacks[0];
		callback.setPassword("admin");
	}
}
